package com.foreknow.demo3;

public class B extends A {
    public B(String name) {
        //可以调用父类中的构造器
        super(name);
    }
    public static void main(String[] args){
        B b=new B("tom");
        //B b=new B();
    }
}
